<nav>
    <div><a [routerLink]="['/parent-component', title]" routerLinkActive="active" ariaCurrentWhenActive="page">parent component</a></div>
    <div><a routerLink="/child-component" [queryParams]="{'title': title}" routerLinkActive="active" ariaCurrentWhenActive="page">child component</a></div>
</nav>
<router-outlet></router-outlet>